package com.bjut.vendormgrsys.web.dto.other;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * ResumeSearch
 */
@Validated


public class ResumeSearch   {
  @JsonProperty("max")
  private Integer max = null;

  @JsonProperty("offset")
  private Integer offset = null;

  @JsonProperty("queryFilter")
  private ResumeSearchQueryFilter queryFilter = null;

  public ResumeSearch max(Integer max) {
    this.max = max;
    return this;
  }

  /**
   * Get max
   * @return max
   **/
  @Schema(description = "")
  
    public Integer getMax() {
    return max;
  }

  public void setMax(Integer max) {
    this.max = max;
  }

  public ResumeSearch offset(Integer offset) {
    this.offset = offset;
    return this;
  }

  /**
   * Get offset
   * @return offset
   **/
  @Schema(description = "")
  
    public Integer getOffset() {
    return offset;
  }

  public void setOffset(Integer offset) {
    this.offset = offset;
  }

  public ResumeSearch queryFilter(ResumeSearchQueryFilter queryFilter) {
    this.queryFilter = queryFilter;
    return this;
  }

  /**
   * Get queryFilter
   * @return queryFilter
   **/
  @Schema(description = "")
  
    @Valid
    public ResumeSearchQueryFilter getQueryFilter() {
    return queryFilter;
  }

  public void setQueryFilter(ResumeSearchQueryFilter queryFilter) {
    this.queryFilter = queryFilter;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ResumeSearch resumeSearch = (ResumeSearch) o;
    return Objects.equals(this.max, resumeSearch.max) &&
        Objects.equals(this.offset, resumeSearch.offset) &&
        Objects.equals(this.queryFilter, resumeSearch.queryFilter);
  }

  @Override
  public int hashCode() {
    return Objects.hash(max, offset, queryFilter);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ResumeSearch {\n");
    
    sb.append("    max: ").append(toIndentedString(max)).append("\n");
    sb.append("    offset: ").append(toIndentedString(offset)).append("\n");
    sb.append("    queryFilter: ").append(toIndentedString(queryFilter)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}
